import 'package:amway_superapp_creator_plugin/viewmodels/circle/editer_circle_top_viewmodel.dart';
import 'package:amway_superapp_creator_plugin/viewmodels/edit/dy_model.dart';
import 'package:amway_superapp_creator_plugin/viewmodels/edit/ks_model.dart';
import 'package:provider/provider.dart';
import 'package:provider/single_child_widget.dart';

import 'api.dart';
import 'models/clear_input_text_model.dart';
import 'viewmodels/circle/related_shop_model.dart';

List<SingleChildWidget> providers = [
  ...independentServices,
  ...dependentServices,
];

List<SingleChildWidget> independentServices = [
  Provider(create: (_) => Api()),
  ChangeNotifierProvider.value(value: KsModel()),
  ChangeNotifierProvider.value(value: DyModel()),
  ChangeNotifierProvider.value(value: ClearTextModel()),
  ChangeNotifierProvider.value(value: RelatedShopModel(api: Api())),
  ChangeNotifierProvider.value(value: EditCircleTopViewModel()),
];

List<SingleChildWidget> dependentServices = [
  //这里使用ProxyProvider来定义需要依赖其他Provider的服务
];
